<?php
/*
 * Created on 26 mai 2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
 class Visualiser_Controller{
 	
 	public function visualise(){
 		$moleculeIdentifier=$_POST["moleculeIdentifier"];
 		$hashMolecule=Visualiser::getMolecule($moleculeIdentifier);
 		$args["moleculeId"]=$moleculeIdentifier;
// 		echo $json;
		$visualiser=new Visualiser_JavaScript_specview_specview_controller_visualiser_View($args);		
 		$visualiser->display();
 //		$json=json_encode($hashMolecule["atoms"]);
// 		var_dump($json);
// 		$visualiser = new Visualiser_JavaScript_specview_specview_controller_visualiser_View($hashMolecule);
// 		$visualiser->display();
 	}
 	
 	
 	public function visualiseSample(){
 		$args=array();
 		$visualiser=new Visualiser_JavaScript_specview_specview_controller_visualiser_View($args);		
 		$visualiser->display();
 	}
 	
 	
 }
?>
